<template>
  <div>
    <div class="footer_wrap">
      <router-link to="/find">发现音乐</router-link>
      <router-link to="/my">我的音乐</router-link>
      <router-link to="/part?name=赵今麦">朋友</router-link>
      <router-link to="/part/赵今麦">朋友</router-link>
      <van-button type="primary">主要按钮</van-button>
      <van-button type="info">信息按钮</van-button>
      <van-button type="default">默认按钮</van-button>
      <van-button type="warning">警告按钮</van-button>
      <van-button type="danger">危险按钮</van-button>
      <!-- <button @click="btn('/find')">发现音乐</button>
      <button @click="btn('/my')">我的音乐</button>
      <button @click="btn('/part')">朋友</button> -->
    </div>
    <div class="top">
      <router-view> </router-view>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    // btn(path) {
    //   this.$router.push({
    //     path,
    //   });
    // },
  },
};
</script>

<style scoped>
.footer_wrap {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  width: 100%;
  text-align: center;
  background-color: #333;
  color: #ccc;
}

.footer_wrap a {
  flex: 1;
  text-decoration: none;
  padding: 20px 0;
  line-height: 20px;
  background-color: #333;
  color: #ccc;
  border: 1px solid black;
}

.footer_wrap a:hover {
  background-color: #555;
}

.top {
  padding-top: 62px;
}

.footer_wrap .router-link-active {
  color: #fff;
  background-color: #000;
}
</style>
